package com.action;

import com.man.UserMessageCtrl;

public class AdminMessageDeleteAction {
	private int userMessageId;

	public int getUserMessageId() {
		return userMessageId;
	}

	public void setUserMessageId(int userMessageId) {
		this.userMessageId = userMessageId;
	}
	
	public String execute() {
		UserMessageCtrl userMessageCtrl=new UserMessageCtrl();
		userMessageCtrl.deleteItem(userMessageId);
		userMessageCtrl.close();
		return "success";
	}
}
